import request from "@/config/request.js";
/**
 * 查看民宿列表
 *  
 */
export function getRoomList(data) {
	return request.get(`/dys/homestay`, data);
}

/**
 * 查看单个民宿间夜信息
 *  
 */
export function getRoomDetails(homestay_id) {
	return request.get(`/dys/homestay/${homestay_id}/night`);
}

/**
 * 校验民宿是否可以预订
 *  
 */
export function verifyRoom(homestay_id) {
	return request.get(`/dys/homestay/${homestay_id}/bookable`);
}